package com.lf.sp.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lf.sp.pojo.Shipping;

public interface ShippingMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Shipping record);

    int insertSelective(Shipping record);

    Shipping selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Shipping record);

    int updateByPrimaryKey(Shipping record);
    
    int deleteByShippingIdUserId(@Param("shippingId") Integer shippingId,@Param("userId") Integer userId);
    
    int updateByShipping(Shipping shipping);
    
    Shipping selectByShippingIdUserId(@Param("shippingId") Integer shippingId,@Param("userId") Integer userId);
    
    List<Shipping> selectByUserId(Integer userId);
}